package com.surelution.projects.crm

import java.util.List;

class GasStation {

    static constraints = {
		longitude nullable:true
		latitude nullable:true
		generalArea nullable:true
		buildingArea nullable:true
		coverArea nullable:true
		hallArea nullable:true
		toiletArea nullable:true
		parkingArea nullable:true
		level nullable:true
		star nullable:true
		tonLevel nullable:true
		name nullable:false
		name blank:false
		longitude nullable:false
		longitude blank:false
		latitude nullable:false
		latitude blank:false
		shortName blank:true
		shortName nullable:true
    }
	
	static mapping = {
		cache true
	}

	static hasMany = [pictures:StationPicture]

	String name
	String address
	String longitude
	String latitude
	
	Level level
	StarLevel star
	TonLevel tonLevel

	List<StationPicture> pictures
	
	String generalArea
	String buildingArea
	String coverArea
	String hallArea
	String toiletArea
	String parkingArea
	String shortName
	boolean hasShop
}
